package com.EM1.www.po;

public class Student extends User{
    private int grade;
    private String instruduction;

    public Student(int id, String name, String password, boolean isteacher, int grade,String instruduction) {
        super(id, name, password, isteacher);
        this.grade = grade;
        this.instruduction=instruduction;
    }

    public Student(int grade,String instruduction) {
        this.grade = grade;
        this.instruduction=instruduction;
    }
    public Student(){}

    public String getInstruduction() {
        return instruduction;
    }

    public void setInstruduction(String instruduction) {
        this.instruduction = instruduction;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Student{" +
                "grade=" + grade +
                ", instruduction='" + instruduction + '\'' +
                '}';
    }
}
